const mongoose = require('mongoose');
module.exports = () => {
    let schema = new mongoose.Schema({
        frontalLogo: {
            logo:String,
            node:String,
        },//正面照
        idCard: {
            frontLogo: String,//反面
            reverseLogo: String,//正面
            node:String,
        },//身份证
        handheldFile:{
            logo:String,
            node:String,
        },//手持文件呢
        graduationCertificate:{
            logo:String,
            node:String,
        },//毕业证书
        reportCard: {
            logo:String,
            node:String,
        },//成绩单
        passport: {
            logo:String,
            node:String,
        },//护照
        userId: {
            type: mongoose.Schema.Types.ObjectId,
            ref: 'User'//用户id
        },
        deletedAt: Date,
        createdAt: Date,
        updatedAt: Date,
    }, {collection: 'tbl_user_upload_pic'});

    return schema;
};